package com.edu.blog.entity;

import java.util.Date;

/**
 * @author: LuckyBear
 * @date: 2018-10-29 10:53
 * @description:    评论表
 */
public class Comment {
    private Integer id;     //主键
    private Integer article_id;     //被评论文章id
    private Integer comment_no;     //评论编号
    private Date comment_time;      //评论时间
    private Integer comment_publisher_id;       //评论人id
    private String comment_content;         //评论内容
    private Integer like_count;         //点赞数

    public Comment() {
    }

    public Comment(Integer article_id, Integer comment_no, Date comment_time, Integer comment_publisher_id, String comment_content, Integer like_count) {
        this.article_id = article_id;
        this.comment_no = comment_no;
        this.comment_time = comment_time;
        this.comment_publisher_id = comment_publisher_id;
        this.comment_content = comment_content;
        this.like_count = like_count;
    }
    public Comment(Integer id, Integer article_id, Integer comment_no, Date comment_time, Integer comment_publisher_id, String comment_content, Integer like_count) {
        this.id = id;
        this.article_id = article_id;
        this.comment_no = comment_no;
        this.comment_time = comment_time;
        this.comment_publisher_id = comment_publisher_id;
        this.comment_content = comment_content;
        this.like_count = like_count;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArticle_id() {
        return article_id;
    }

    public void setArticle_id(Integer article_id) {
        this.article_id = article_id;
    }

    public Integer getComment_no() {
        return comment_no;
    }

    public void setComment_no(Integer comment_no) {
        this.comment_no = comment_no;
    }

    public Date getComment_time() {
        return comment_time;
    }

    public void setComment_time(Date comment_time) {
        this.comment_time = comment_time;
    }

    public Integer getComment_publisher_id() {
        return comment_publisher_id;
    }

    public void setComment_publisher_id(Integer comment_publisher_id) {
        this.comment_publisher_id = comment_publisher_id;
    }

    public String getComment_content() {
        return comment_content;
    }

    public void setComment_content(String comment_content) {
        this.comment_content = comment_content;
    }

    public Integer getLike_count() {
        return like_count;
    }

    public void setLike_count(Integer like_count) {
        this.like_count = like_count;
    }

    @Override
    public String toString() {
        return "comment{" +
                "id=" + id +
                ", article_id=" + article_id +
                ", comment_no=" + comment_no +
                ", comment_time=" + comment_time +
                ", comment_publisher_id=" + comment_publisher_id +
                ", comment_content='" + comment_content + '\'' +
                ", like_count=" + like_count +
                '}';
    }
}
